import axios from '@/libs/request/axios'
import QS from 'qs';




//
export const getConfigListData = (params) => {
    return axios.request({
        url: '/contractManage/exemptConfig/getConfigListData',
        method: 'POST',
        data: params
    })
}
// 删除用户
export const deleteExemptConfig = (id, params) => {
    return axios.request({
        url: `/contractManage/exemptConfig/deleteExemptConfig/${id}`,
        params: params,
        method: 'delete'
    })
}
//保存配置
export const save = (params) => {
    return axios.request({
        url: '/contractManage/exemptConfig/save',
        method: 'POST',
        data: params
    })
}

//获取部门
export const getDepConfigListData = (params) => {
    return axios.request({
        url: '/contractManage/exemptConfig/getDepConfigListData',
        method: 'POST',
        data: params
    })
}
export const saveDep = (params) => {
    return axios.request({
        url: '/contractManage/exemptConfig/saveDep',
        method: 'POST',
        data: params
    })
}

// 通过user获取真实姓名
export const getUserOne = (username, params) => {
    return axios.request({
        url: `/admin/user/info/${username}`,
        params: params,
        method: 'get'
    })
}
// 获取用户
export const getDeptByDeptId = (id, params) => {
    return axios.request({
        url: `/admin/department/getDeptInfoById/${id}`,
        params: params,
        method: 'post'
    })
}
